package first;

import java.util.Arrays;

public class School implements ComputerAverage{
    double[] arr;

    public School(double[] arr) {
        this.arr = arr;
    }

    @Override
    public double work() {
        double sum = 0;
        for(int i = 0; i < arr.length; i++) {
            sum = sum + arr[i];
        }
        return sum / arr.length;
    }
}
